//
//  Car.m
//  iTotemFrame
//
//  Created by Rainbow Zhang on 12/27/11.
//  Copyright (c) 2011 iTotemStudio. All rights reserved.
//

#import "DemoModel.h"

@implementation DemoModel

@synthesize modelId;
@synthesize name;
@synthesize description;
@synthesize models;

- (id)init
{
    self = [super init];
    if (self) {
        self.models = [NSMutableArray array];
    }
    return self;
}


/**
    Key-Value pair by dictionary key name and property name.
    key:    dictionary key name
    value:  property name
 **/

- (NSDictionary*)attributeMapDictionary{	
	return [NSDictionary dictionaryWithObjectsAndKeys:
            @"id",@"modelId"
            ,@"name",@"name"
            ,@"description",@"description"
            ,@"models",@"models"
            ,nil];
}


- (void)dealloc
{
    self.modelId = nil;
    self.name = nil;
    self.description = nil;
    self.models = nil;
    [super dealloc];
}

@end
